// 定义全局React，作用与webpack.config.js里面的webpack.ProvidePlugin相同
global.React=require('react');

// Provide custom regenerator runtime and core-js
// require('babel-polyfill');

// Javascript required hook
require('babel-register')({presets: ['es2015', 'react', 'stage-0']});
require('./app');

// Css required hook
// require('css-modules-require-hook')({
//     extensions: ['.scss'],
//     preprocessCss: (data, filename) =>
//         require('node-sass').renderSync({
//             data,
//             file: filename
//         }).css,
//     camelCase: true,
//     generateScopedName: '[name]__[local]__[hash:base64:8]'
// });

// Image required hook
// require('asset-require-hook')({
//     extensions: ['jpg', 'png', 'gif', 'webp'],
//     limit: 8000
// });